import request from "./requset";

export const getListApi = (data) => request.post("/api/trip/train", data);

export const getTicketApi = (data) =>
  request.get("/api/trip/train/" + data.id, {
    params: {
      start: data.start,
      end: data.end,
    },
  });
